package com.lsu.app.bean;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import java.util.List;

import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * 
 * @Date 2023-10-20 18:18:41
 * @author hjj
 */
@Data
@TableName("menu")
@ApiModel(value="Menu对象", description="")
public class Menu implements Serializable {

    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer id;

    @NotBlank(message="[]不能为空")
    @Size(max= 32,message="编码长度不能超过32")
    @ApiModelProperty("")
    private String name;

    @NotBlank(message="[路由地址]不能为空")
    @Size(max= 32,message="编码长度不能超过32")
    @ApiModelProperty("路由地址")
    private String path;

    @ApiModelProperty("")
    private Integer upId;

    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("")
    private String remake;

    @ApiModelProperty("")
    private String updateTime;
    @ApiModelProperty("子菜单")
    private List<Menu> submenu;
}
